// <copyright file="ChartAxis.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

namespace YUIAspNet
{
    /// <summary>
    /// Base class for chart's axis.
    /// </summary>
    public abstract class ChartAxis
    {
        string _type;

        /// <summary>
        /// Initializes a new instance of the <see cref="ChartAxis"/> class.
        /// </summary>
        /// <param name="type">The type.</param>
        protected ChartAxis(string type)
        {
            this._type = type;
        }

        /// <summary>
        /// Gets the type of chart.
        /// </summary>
        /// <value>The chart type.</value>
        public string ChartType 
        {
            get { return this._type; }
        }

        /// <summary>
        /// Gets or sets a value indicating whether to reverse the values of the axis.
        /// </summary>
        /// <value><c>true</c> to reverse; otherwise, <c>false</c>.</value>
        public bool Reverse { get; set; }

        /// <summary>
        /// Gets or sets the label format.
        /// </summary>
        /// <value>The label format.</value>
        public string LabelFormat { get; set; }
    }
}
